import request from '@/utils/request'

// 查询前台用户管理列表
export function listWhiteList(query) {
  return request({
    url: '/white-list/list',
    method: 'get',
    params: query
  })
}

// 新增前台用户管理
export function addWhiteList(url)
{
  console.log('add-list',url)
  return request({
    url: '/white-list/add?url='+url,
    method: 'post'
  })
}

// 删除前台用户管理
export function delWhiteList(url) {
  return request({
    url: '/white-list/remove?url=' + url,
    method: 'delete'
  })
}
